<?php /* Smarty version Smarty-3.0.5, created on 2011-05-31 18:26:51
         compiled from ".\templates\tesztkeszites.tpl" */ ?>
<?php /*%%SmartyHeaderCode:94194de532eb41bef1-86508277%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a63701d8fe8e263911da1118c664eff60e288664' => 
    array (
      0 => '.\\templates\\tesztkeszites.tpl',
      1 => 1306866401,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '94194de532eb41bef1-86508277',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<form action="/index.php" method="post">

    <p>Teszt Neve: <input type="text" name="tesztnev" value="<?php echo $_smarty_tpl->getVariable('tesztnev')->value;?>
"/></p>
    Melyik Tantargyal kapcsolatos:

    <select name="disc">
         <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('disc')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
        <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['DName'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['DName'];?>
</option>
        <?php }} ?>
    </select>
    <p>Hany kerdes? <input type="text" name="kerdesszam" value="<?php echo $_smarty_tpl->getVariable('kerdesszam')->value;?>
"/></p>
    <p><input type="submit" name="generalas" value="Generalas"/></p>

    <input type="hidden" name="page" value="tesztkeszites"/>


<?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable(1, null, null);?>



<?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = (int)0;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('kerdesszam')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = ((int)1) == 0 ? 1 : (int)1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
<?php $_smarty_tpl->tpl_vars['k'] = new Smarty_variable($_smarty_tpl->getVariable('smarty')->value['section']['i']['index']+1, null, null);?>
    <p>Kerdes<?php echo $_smarty_tpl->getVariable('k')->value;?>
:  <input type="text" name="kerdes<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['i']['index'];?>
"/></p>
    <p>Valasz1: <input type="text" name="valasz<?php echo $_smarty_tpl->getVariable('j')->value;?>
"/>
        <input type="hidden" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="0" />
        <input type="checkbox" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="1" /></p>
<?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_smarty_tpl->getVariable('j')->value+1, null, null);?>
    <p>Valasz2: <input type="text" name="valasz<?php echo $_smarty_tpl->getVariable('j')->value;?>
"/>
        <input type="hidden" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="0" />
        <input type="checkbox" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="1" /></p>
<?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_smarty_tpl->getVariable('j')->value+1, null, null);?>
    <p>Valasz3: <input type="text" name="valasz<?php echo $_smarty_tpl->getVariable('j')->value;?>
"/>
        <input type="hidden" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="0" />
        <input type="checkbox" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="1" /></p>
<?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_smarty_tpl->getVariable('j')->value+1, null, null);?>
    <p>Valasz4: <input type="text" name="valasz<?php echo $_smarty_tpl->getVariable('j')->value;?>
"/>
        <input type="hidden" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="0" />
        <input type="checkbox" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="1" /></p>
<?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_smarty_tpl->getVariable('j')->value+1, null, null);?>
    <p>Valasz5: <input type="text" name="valasz<?php echo $_smarty_tpl->getVariable('j')->value;?>
"/>
        <input type="hidden" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="0" />
        <input type="checkbox" name="Selected<?php echo $_smarty_tpl->getVariable('j')->value;?>
" value="1" /></p>
<?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_smarty_tpl->getVariable('j')->value+1, null, null);?>
    <br> </br>
<?php endfor; endif; ?>

    <p><input type="submit" name="save" value="Save"/></p>
    <input type="hidden" name="page" value="Main"/>
</form>